]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
boxpointer: Remove deprecated show/hide methods
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 17 Jun 2019 10:36:34 +0000 (12:36 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Mon, 17 Jun 2019 12:22:42 +0000 (14:22 +0200)
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/576

js/ui/boxpointer.js

index 3c704d2d3427479e09f00a70f9f5eb17f432dbcc..02491e989382058285b5b071563cc8827b58f58d 100644 (file)
@@ -76,36 +76,6 @@ var BoxPointer = GObject.registerClass({
         }
     }
 
-    // BoxPointer.show() and BoxPointer.hide() are here for only compatibility
-    // purposes, and will be removed in 3.32.
-    show(animate, onComplete) {
-        if (animate !== undefined) {
-            try {
-                throw new Error('BoxPointer.show() has been moved to BoxPointer.open(), this code will break in the future.');
-            } catch(e) {
-                logError(e);
-                this.open(animate, onComplete);
-                return;
-            }
-        }
-
-        this.visible = true;
-    }
-
-    hide(animate, onComplete) {
-        if (animate !== undefined) {
-            try {
-                throw new Error('BoxPointer.hide() has been moved to BoxPointer.close(), this code will break in the future.');
-            } catch(e) {
-                logError(e);
-                this.close(animate, onComplete);
-                return;
-            }
-        }
-
-        this.visible = false;
-    }
-
     open(animate, onComplete) {
         let themeNode = this.get_theme_node();
         let rise = themeNode.get_length('-arrow-rise');